const http = uni.$u.http

// 上传图片
export const uploadImage = (image, formData = {}) => {
    let cfg = {
        name: 'image',
        formData: formData,
    }
    // 如果file是数组
    if (Array.isArray(image)) {
        cfg.files = image
    } else {
        cfg.filePath = image
    }
    return http.upload('/wxc/sharer-mp/v1/file-manager/upload', cfg)
}
